<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib uri="TowkerTagLib" prefix="rbac"%>
<%@include file="/commons/include/html_doctype.html"%>
<html>
<head>
	<title>修改</title>
	<%@include file="/commons/include/upd.jsp" %>
	<script type="text/javascript">
$(function(){
	
	jQuery("#dataForm").validate(
	{
		rules: {
		},
		messages: {
		},
		submitHandler:function(form)
		{
			jQuery(form).ajaxSubmit(_options);
		}
	});
});
_callback = function() {
	location.href = ctx + "/manage/complex/getBbsTopic.htm";
}
validCallBack = function()
{
	//添加页面自定义校验
	return true;
};

function sub(){
	if($("#content").val()==""){
		alert("请输入评论内容");
		return false;
	}else{
		return true;
	}
}
	</script>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" class="listLogo">
	<tr>
		<td class="title">回复</td>
		<td>
			<div class="menuTool">
				<a class="save" id="dataFormSave" href="#">保存</a>
				<a class="back" href="getBbsTopic.htm">返回</a>
			</div>
		</td>
	</tr>
</table>
<div class="line"></div>
<form id="dataFormErr" method="post" action="updBbsTopic2.htm">
<table border="0" cellspacing="1" cellpadding="0" class="listTable">
	<tr>
		<td><p><strong>${po.title}</strong></p></td>
	</tr>
	<tr>
		<td><p style="font-family:times;color:green">作者：${po.user_name}&nbsp;&nbsp;  发表日期：${po.create_date}</p></td>
	</tr>
	<tr>
		<td><div id="conten">${po.content}</div></td>
	</tr>
</table>
<c:forEach items="${replyList}" var="r" varStatus="status">
					<table>
						<tr><td><p style="font-family:times;color:green">作者：${r.user_name}&nbsp;&nbsp;  发表日期：${r.create_date}</p></td></tr>
						<tr><td><div id="replyConten">${r.content}</div></td></tr>
					</table>
</c:forEach>
<table>
<tr><td><textarea name="content" cols="50" rows="5" id="content"></textarea></td></tr>
<tr><td><input type="submit" value="发表" id="submit" name="submit" onclick="return  sub();"/></td></tr>
</table>
<input type="hidden" name="id" value="${po.id}" />
</form>
</body>
</html>
